//
//  BaseMessage.h
//  integration_test
//
//  Created by mateng on 2024/2/19.
//

#import <Foundation/Foundation.h>
#import <UTEBluetoothRYApi/UTEBluetoothRYApi.h>
#import <Flutter/Flutter.h>
#import "UTEPedEventHandler.h"
#import "Const.h"
#import "SPHelper.h"
#import "DeviceHelper.h"


NS_ASSUME_NONNULL_BEGIN

@interface BaseMessage : NSObject {
    
}

@property(nonatomic, strong) UTEPedEventHandler *eventHander;

- (id)initWithHandler: (UTEPedEventHandler*) eventHandler;

- (void)notificationListen;

- (NSString*) getPath;

- (BOOL)methodCallConsumed:(NSString*)method params:(NSDictionary*)params result:(FlutterResult)result;

- (void)syncTimeClock: (void(^)(NSInteger errorCode ,NSDictionary *uteDict))block;

- (void)log:(NSString*)message;

- (BOOL)isSuccess:(NSInteger)errorCode;

- (NSInteger) getTimeDisplay;

- (BOOL)isConnected;

@end

NS_ASSUME_NONNULL_END
